package com.andkrup.web.navigation {
	import com.andkrup.ds.NavData;	
	import com.andkrup.ds.ICommand;	
	
	/**
	 * @author Andkrup
	 */
	public class NavCommand implements ICommand {
		protected var data: NavData;
		
		final public function get name():String{
			return data.name;
		}
		
		public function NavCommand(data:NavData):void{
			this.data = data;
		}
		
		public function execute():void{
			throw new Error("NavCommand:> execute() abstract method, please override");
		}
		public function unexecute():void{
			throw new Error("NavCommand:> unexecute() abstract method, please override");
		}
	}
}
